var appendNumber = 8;
    var prependNumber = 1;
    var swiper = new Swiper('.swiper-container', {
    	//个数
      slidesPerView: 3,
      centeredSlides: false,
      //间距
      spaceBetween: 5,
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
    });



//加减
		$(function(){
			$(".zeng").on("click",zengjia);
			$(".jian").on("click",jianshao);
			
		});
		function zengjia(){
			var num = parseInt($(".zitan input").val())+1;
			$(".zitan input").val(num);
		}
		function jianshao(){
			var num = parseInt($(".zitan input").val())-1;
			if (num<=0) {
				$(".zitan input").val(0);
			} else{
				$(".zitan input").val(num);
				
			}
		}
	
//票勾选
$(function(){
	allCancle();
	$(".piao_xuxian").on("click",gou);
	
	//活动详情
	chuxian();
	$(".activite_de").on("click",chuxian);
	$(".tip").on("click",wenxin);
	$(".pingjia").on("click",pingjia);
})

function allCancle(){
	$(".piao_1").css("display","none")
}


function  gou(){
	//票勾选
	allCancle();
	$(this).children().eq(0).children().eq(1).children().eq(0).css("display","block");
	
	
}



//活动详情——加载页面时
function chuxian(){
	$(".huodong").css("display","block");
	$(".wenxin").css("display","none");
	$(".comment_1").css("display","none");
}


function wenxin(){
	$(".wenxin").css("display","block");
	$(".comment_1").css("display","none");
	$(".huodong").css("display","none");
}

function pingjia(){
	$(".comment_1").css("display","flex");
	$(".huodong").css("display","none");
	$(".wenxin").css("display","none");
}
